from django.conf.urls.defaults import patterns, include, url
from django.conf import settings
from Project_TextBadger.TextBadger import views

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'TextBadger.views.home', name='home'),
    # url(r'^TextBadger/', include('TextBadger.foo.urls')),
    
    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
    	(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root':settings.MEDIA_ROOT}),
    	(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root':settings.STATIC_ROOT}),
	
	(r'^$', views.index), #  ?login, ?register and ?logout
	(r'^projects/$', views.viewProjects),
	(r'^user/$', views.viewUserPage),
	(r'^messages/$', views.viewMessages),
	(r'^account/$', views.viewAccount),
	(r'^project/$', views.viewProject),
	(r'^new/project/$', views.newProject),
	(r'^new/corpus/$', views.newCorpus),
	(r'^new/codebook/$', views.newCodebook),
	(r'^new/task/$', views.newTask),
	(r'^new/job/$', views.newJob),
	(r'^new/report/$', views.newReport),
	(r'^new/algo/$', views.newAlgo),
	(r'^edit/project/$', views.editProject),
	(r'^edit/corpora/$', views.editCorpora),
	(r'^edit/codebook/$', views.editCodebook),
	(r'^edit/algo/$', views.editAlgo),
	(r'^search/user/$', views.searchUsers),
	(r'^deleteaccount/$', views.deleteAccount),
	(r'^delete/project/$', views.deleteProject),
	(r'^leave/project/$', views.leaveProject),
	(r'^remove/partner/$', views.removePartner),
	(r'^remove/corpora/$', views.removeCorpora),
	(r'^remove/codebook/$', views.removeCodebook),
	(r'^remove/task/$', views.removeTask),
	(r'^remove/job/$', views.removeJob),
	(r'^remove/vector/$', views.removeCorpusVector),
	(r'^remove/report/$', views.removeReport),
	(r'^remove/algo/$', views.removeAlgo),
	(r'^manageusers/$', views.manageUsers),
	(r'^task/$', views.viewTask),
)
